import request from "@/utils/request"

// 分页查询固化设备模型参数 GET /lDeviceSedModelParameter/queryPageDeviceSedModelParameter
export function queryPageDeviceSedModelParameter(data) {
  return request({
    url: "/lDeviceSedModelParameter/queryPageDeviceSedModelParameter",
    method: "get",
    params: data
  })
}

// 分页查询固化设备模型参数 GET /deviceSet/queryPageDevice
export function queryPageDevice(data) {
  return request({
    url: "/deviceSet/queryPageDevice",
    method: "get",
    params: data
  })
}

// 查询固化设备模型参数 GET /lDeviceSedModelParameter/queryOneDeviceSedModelParameter
export function queryOneDeviceSedModelParameter(data) {
  return request({
    url: "/lDeviceSedModelParameter/queryOneDeviceSedModelParameter",
    method: "get",
    params: data
  })
}

// 设备模型参数--列表
export function queryParametersPageByDevice(data) {
  return request({
    url: "/deviceSet/queryParametersPageByDevice",
    method: "get",
    params: data
  })
}

// 配置设备基础信息
export function queryOneDevice(data) {
  return request({
    url: "/deviceSet/queryOneDevice",
    method: "get",
    params: data
  })
}

///deviceSet/queryDeviceOwnerParPage
export function queryDeviceOwnerParPage(data) {
  return request({
    url: "/deviceSet/queryDeviceOwnerParPage",
    method: "get",
    params: data
  })
}

//
export function queryParamForOwnParList(data) {
  return request({
    url: "/deviceSet/queryParamForOwnParList",
    method: "get",
    params: data
  })
}

//
export function insertDeviceOwnerPar(data) {
  return request({
    url: "/deviceSet/insertDeviceOwnerPar",
    method: "post",
    data: data
  })
}

export function queryDeviceOwnerPar(data) {
  return request({
    url: "/deviceSet/queryDeviceOwnerPar",
    method: "get",
    params: data
  })
}

export function updateDeviceOwnerPar(data) {
  return request({
    url: "/deviceSet/updateDeviceOwnerPar",
    method: "post",
    data: data
  })
}

//保存配置设备基础信息
export function updateOneDevice(data) {
  return request({
    url: "/deviceSet/updateOneDevice",
    method: "post",
    data: data
  })
}

//删除设备自定义参数

export function deleteDeviceOwnerPar(data) {
  return request({
    url: "/deviceSet/deleteDeviceOwnerPar",
    method: "post",
    data: data
  })
}

//查询固化设备参数模型
export function queryGHDeviceParPage(data) {
  return request({
    url: "/deviceSet/queryGHDeviceParPage",
    method: "get",
    params: data
  })
}


//查询已绑定设备
export function queryPdxDevicePage(data) {
  return request({
    url: "/deviceSet/queryPdxDevicePage",
    method: "get",
    params: data
  })
}

//保存
export function insertPdxDevice(data) {
  return request({
    url: "/deviceSet/insertPdxDevice",
    method: "post",
    data: data
  })
}

//删除
export function deletePdxDevice(data) {
  return request({
    url: "/deviceSet/deletePdxDevice",
    method: "post",
    data: data
  })
}

//查询
export function queryDevicePage(data) {
  return request({
    url: "/topologySet/queryDevicePage",
    method: "get",
    params: data
  })
}

//更新
export function updateTopologyColorSet(data) {
  return request({
    url: "/topologySet/updateTopologyColorSet",
    method: "post",
    data: data
  })
}

//查询弹框接口
export function queryTopologyColorSet(data) {
  return request({
    url: "/topologySet/queryTopologyColorSet",
    method: "get",
    params: data
  })
}


// 查询告警&故障接口
export function queryGJAndGZConfigPage(data) {
  return request({
    url: "/deviceSet/queryGJAndGZConfigPage",
    method: "get",
    params: data
  })
}

// 添加告警&故障接口
export function insertGJAndGZConfig(data) {
  return request({
    url: "/deviceSet/insertGJAndGZConfig",
    method: "post",
    data: data
  })
}

// 删除告警&故障接口
export function deleteGJAndGZConfig(data) {
  return request({
    url: "/deviceSet/deleteGJAndGZConfig",
    method: "post",
    data: data
  })
}


//
export function queryGJAndGZConfigShowConfig(data) {
  return request({
    url: "/deviceSet/queryGJAndGZConfigShowConfig",
    method: "get",
    params: data
  })
}

export function queryDxDevice(data) {
  return request({
    url: "/deviceSet/queryDxDevice",
    method: "get",
    params: data
  })
}

export function saveGJAndGZConfigShowConfig(data) {
  return request({
    url: "/deviceSet/saveGJAndGZConfigShowConfig",
    method: "post",
    data: data
  })
}

export function insertDxDevice(data) {
  return request({
    url: "/deviceSet/insertDxDevice",
    method: "post",
    data: data
  })
}

export function deleteDxDevice(data) {
  return request({
    url: "/deviceSet/deleteDxDevice",
    method: "post",
    data: data
  })
}

export function updateDxDevice(data) {
  return request({
    url: "/deviceSet/updateDxDevice",
    method: "post",
    data: data
  })
}



